from django.urls import path
from .views import *


urlpatterns = [
    path("carousel/",CarouselAPIView.as_view()),
    path("oneCategory/all/",OneCategoryGoods.as_view()),

#     热门商品
    path("getHotProduct/",HotProduct.as_view()),

#     商品详情
    path("onegood/",GoodDetail.as_view()),

#     详情轮播图
    path("onegood/imgs/",DetailCarousel.as_view()),

#     添加历史记录
    path("oneGood/history/",GoodHistory.as_view()),

#     加载所有商品的类别
    path("categories/",CategoryAPIView.as_view()),

#     加载所有的商品数据
    path("good/all/",GoodAPIView.as_view()),

#     加载指定类别的商品数据
    path("good/byCategory/",GoodByCategory.as_view())
]